<template>
  <a href="javascript:void" @click.stop="onClick">Mock</a>
</template>

<script>
export default {
  props: {
    value: String
  },
  methods: {
    async onClick() {
      await this.$api.Auth.mock(this.value);
      this.$q.notify({
        icon: "insert_emoticon",
        message: `Mock '${this.value}' 成功`,
        color: "green",
        position: "top",
        timeout: 1500
      });
    }
  }
};
</script>

<style></style>
